<%@ Page Language="VB" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="false" 
CodeFile="System_Users.aspx.vb" Inherits="Admin_System_Users" title="CIMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" width="580">
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 100px; font-family: Verdana" align="left">
                        &nbsp;Username:</td>
                    <td style="width: 499px" align="left"><asp:TextBox ID="Username_txt" runat="server" Width="144px" TabIndex="1"></asp:TextBox></td>                    
                </tr>
            </table>
        </td></tr>
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 99px; font-family: Verdana" align="left">
                        &nbsp;Name:</td>
                    <td align="left"><asp:TextBox ID="LastName_txt" runat="server" Width="144px" TabIndex="2"></asp:TextBox><asp:TextBox ID="FirstName_txt" runat="server" Width="176px" TabIndex="3"></asp:TextBox><asp:TextBox ID="MiddleName_txt" runat="server" Width="136px" TabIndex="4"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </td></tr>
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 95px; font-family: Verdana; height: 24px;" align="left">
                        &nbsp;Department:</td>
                    <td style="width: 189px; height: 24px;" align="left"><asp:TextBox ID="Department_txt" runat="server" Width="144px" TabIndex="5"></asp:TextBox></td>                    
                    <td style="font-size: 10pt; width: 128px; font-family: Verdana; height: 24px;" align="left">
                        &nbsp;Role:</td>
                    <td style="width: 140px; height: 24px;" align="left"><asp:TextBox ID="Role_txt" runat="server" Width="136px" TabIndex="6"></asp:TextBox></td>                    
                </tr>
            </table>
        </td></tr>
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 90px; font-family: Verdana" align="left">
                        &nbsp;Advisor:</td>
                    <td style="width: 192px" align="left"><asp:CheckBox ID="Advisor_chk" runat="server" TabIndex="7" AutoPostBack="True" /></td>                    
                    <td style="font-size: 10pt; width: 129px; font-family: Verdana" align="left">
                        &nbsp;Advisor Level:</td>
                    <td style="width: 139px" align="left"><asp:TextBox ID="Level_txt" runat="server" Width="136px" TabIndex="8" Enabled="False"></asp:TextBox></td>                    
                </tr>
            </table>
        </td></tr>
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="right" style="height: 33px"><asp:Button ID="Search_btn" runat="server" Text="Search" BackColor="Gainsboro" Font-Names="Verdana" TabIndex="9" />
                        &nbsp; &nbsp;&nbsp;
                    </td>                    
                </tr>
            </table>
        </td></tr>
    </table>
    
    <br />
    
    <table cellpadding="0" cellspacing="0" width="580px" style="font-family:Verdana; font-size:10pt">
        <tr>
        <td align="left" style="height: 16px"> Search Results: 
            <asp:Label ID="Results_lbl" runat="server"></asp:Label></td>
        <td align="right" style="height: 16px;"> 
            <asp:LinkButton ID="Add_btn" runat="server" ForeColor="Black"
                TabIndex="10" Font-Underline="True">Add New User</asp:LinkButton></td>
        </tr>
    </table>
        
    <table cellpadding="0" cellspacing="0">
        <tr><td style="width: 580px;">
            <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="580px" Font-Size="Small" TabIndex="11" AllowSorting="True" AllowPaging="True">
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                <AlternatingItemStyle BackColor="#D7DADF" />
                <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundColumn DataField="user_name" Visible="False"></asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Name" DataField="Name">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Department" DataField="Dept">
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Role" DataField="Role">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:ButtonColumn CommandName="Reset" HeaderText="Password" Text="Reset">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="80px" />
                    </asp:ButtonColumn>
                    <asp:ButtonColumn CommandName="Edit" Text="Edit">
                        <HeaderStyle Width="35px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                    <asp:TemplateColumn>
                        <HeaderStyle Width="45px" />
                        <ItemTemplate>
                            <asp:LinkButton ID="Delete_btn" runat="server" CommandName="Delete" ForeColor="Black">Delete</asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender
                                ID="ConfirmButtonExtender1" runat="server" ConfirmText="Continue delete?" TargetControlID="Delete_btn">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </ItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:TemplateColumn>
                    <asp:ButtonColumn CommandName="View" Text="View">
                        <HeaderStyle Width="35px" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                    <asp:BoundColumn DataField="email_address" Visible="False"></asp:BoundColumn>
                </Columns>
            </asp:DataGrid></td></tr>
    </table>        

    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <ajaxToolkit:TextBoxWatermarkExtender Enabled="true" TargetControlID="LastName_txt" runat="server" 
    ID="LastName_TBWM" WatermarkText="Last Name" WatermarkCssClass="WaterMk">
    </ajaxToolkit:TextBoxWatermarkExtender>
    <ajaxToolkit:TextBoxWatermarkExtender Enabled="true" TargetControlID="FirstName_txt" runat="server" 
    ID="FirstName_TBWM" WatermarkText="First Name" WatermarkCssClass="WaterMk">
    </ajaxToolkit:TextBoxWatermarkExtender>
    <ajaxToolkit:TextBoxWatermarkExtender Enabled="true" TargetControlID="MiddleName_txt" runat="server" 
    ID="MiddleName_TBWM" WatermarkText="Middle Name" WatermarkCssClass="WaterMk">
    </ajaxToolkit:TextBoxWatermarkExtender>
    
</asp:Content>